//
//  QSProblemReprotInterface.h
//  DigitalEconomy_iOS
//
//  Created by Ding on 2020/4/3.
//  Copyright © 2020 DingC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ResponseMessage.h"
#import "QSQSProblemReportListModel.h"
#import "QSProblemDetailModel.h"
#import "QSProblemCompanyListModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface QSProblemReprotInterface : NSObject
/**
* @brief 获取问题上报主列表
*/
+ (void)getApiProblemReportListWithPageIndex:(NSInteger)pageIndex
                                   WithMonth:(NSString *)month
                                    andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSQSProblemReportListModel *result))block;

/**
* @brief 问题详情
*/
+ (void)getApiProblemDetailWithID:(NSInteger)id
                                andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSProblemDetailModel *result))block;

/**
* @brief 获取问题类型下拉列表
*/
+ (void)getApiProblemTypeListWithBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSArray *result))block;

/**
* @brief 获取街道列表
*/
+ (void)getApiTownListListWithBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;

/**
 * @brief 获取公司列表 （模糊搜索）
 *TownShipId 街道ID
 *CompanyName 公司名称
*/
+ (void)getApiCompanyListWithPageIndex:(NSInteger )pageIndex
                            TownShipId:(NSString *)townShipId
                           CompanyName:(NSString *)companyName
                              andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSProblemCompanyListModel *result))block;


/**
* @brief 提交问题
 *typeId 问题类型id
 *title 问题标题
 *info 描述信息
 *pic 描述图片
 *companyKey 企业
*/
+ (void)postNewProblemWithTypeId:(NSString *)typeId
                              Title:(NSString *)title
                            Info:(NSString *)info
                            Pic:(NSString *)pic
                      CompanyKey:(NSString *)companyKey
                              AndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;

@end

NS_ASSUME_NONNULL_END
